﻿package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SSeqSoul extends IMessageBase
    {
        public var soulDt:String;
        public var upgradeTime:int;
        public var ghost:int;
        public var nowSoul:int;
        public var souls:Array;
        public const _type:int = 15005;
        public static var _regist:SSeqSoul = new SSeqSoul(true);

        public function SSeqSoul(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SSeqSoul();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeString(this.soulDt);
            param1.writeInt(this.upgradeTime);
            param1.writeInt(this.ghost);
            param1.writeInt(this.nowSoul);
            SeqSoulHelper.write(param1, this.souls);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.soulDt = param1.readString();
            this.upgradeTime = param1.readInt();
            this.ghost = param1.readInt();
            this.nowSoul = param1.readInt();
            this.souls = SeqSoulHelper.read(param1);
            return;
        }// end function

    }
}
